package com.farmer.lazycoder;


import com.lanjor.ferry.webapp.server.JettyServer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class Application {
	private static Logger logger = null;
	//private static boolean stoped = false;

	public static void main(String[] args) {
		try {
			logger = LoggerFactory.getLogger(Application.class);
			Runtime.getRuntime().addShutdownHook(new Thread() {
				@Override
				public void run() {
					logger.error("System is about to exit");
				}
			});
			JettyServer.getInstance().run(Application.class);
		} catch (Exception ex) {
			logger.error("启动jetty失败",ex);
		}
	}

}
